#include<iostream>
#include<vector>
#include<string>

using namespace std;

class Solution {
public:
	string reverseVowels(string s) {
		int left = 0, right = s.size() - 1;
		while (left < right) {
			while (!(s[left] == 'a'||s[left]=='A' || s[left] == 'e'||s[left]=='E' || s[left] == 'i'||s[left]=='I' || s[left] == 'o'||s[left]=='O' || s[left] == 'u'||s[left]=='U') && left < right)
				left++;
			while (!(s[right] == 'a' || s[right] == 'A' || s[right] == 'e' || s[right] == 'E' || s[right] == 'i' || s[right] == 'I' || s[right] == 'o' || s[right] == 'O' || s[right] == 'u' || s[right] == 'U') && left < right)
				right--;
			swap(s[left], s[right]);
			left++, right--;
		}
		return s;
	}
};

int main() {
	string str = "aA";
	Solution s;
	cout << s.reverseVowels(str) << endl;
}